package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.ProductBean;
import com.project.bean.SpeakBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IProductMapper extends BaseMapper<ProductBean> {
    public IPage<ProductBean> findByItem(Page pg,@Param("name") String name);
    public ProductBean findById(Integer id);
    public List<SpeakBean> findSpeak(Integer productId);
}
